import request from '@/utils/request'

// 查询求职信息列表
export function listInterview(query) {
  return request({
    url: '/enterprise/interview/list',
    method: 'get',
    params: query
  })
}

// 查询求职信息详细
export function getInterview(interviewId) {
  return request({
    url: '/enterprise/interview/' + interviewId,
    method: 'get'
  })
}

// 新增求职信息
export function addInterview(data) {
  return request({
    url: '/enterprise/interview',
    method: 'post',
    data: data
  })
}

// 修改求职信息
export function updateInterview(data) {
  return request({
    url: '/enterprise/interview',
    method: 'put',
    data: data
  })
}

// 删除求职信息
export function delInterview(interviewId) {
  return request({
    url: '/enterprise/interview/' + interviewId,
    method: 'delete'
  })
}

// 导出求职信息
export function exportInterview(query) {
  return request({
    url: '/enterprise/interview/export',
    method: 'get',
    params: query
  })
}